Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
12 lines (8 loc) · 390 Bytes

8.2.2 - WebSocket/Server->exist.md

File metadata and controls

12 lines (8 loc) · 390 Bytes

WebSocket\Server->exist

v4.3.0以后, 此API仅用于判断连接是否存在, 请使用isEstablished判断是否为websocket连接

判断WebSocket客户端是否存在,并且状态为Active状态。

function WebSocket\Server->exist(int $fd);
  • 连接存在,并且已完成WebSocket握手,返回true
  • 连接不存在或尚未完成握手,返回false